$(function(){
	$("#illia_1").delay(200).animate({top:"16%"}, 600,
	function(){
        $(".yizai").css("display","block");
		$(".yizai").animate({opacity:"1"},200);
		$("#masha_and_tim_1").animate({right:"160px"},400,
		function(){
		    $("#vika_1").animate({right:"90px"},400,
			function(){
				$("#fred_1").animate({right:"20px"},400,
				function(){
					$(".down").animate({bottom:"4%"},400)
				})
			})
		})
	});
    $(".logo").css("display","block");
	$(".logo").delay(400).animate({opacity:"1"},400);
	$(".down").click(function(){
		$(".down2,.top2").css("display","block");
		$(".hei_bg").delay(200).animate({height:"0"}, 400);
		$(".down").delay(200).animate({opacity:"0"}, 400);
		$("body").css("background-image","url(../public/images/guide/bg_colored3.png)");
		$("#illia_1").delay(200).animate({opacity:"0"}, 400,
		function(){
            $("#illia_1").css("display","none");
            $("#activity div#icon1,#activity div#icon2,#activity div#icon3,#activity div#icon4,#activity div#icon5,#activity div#icon6").css("display","block");
			$("#activity div#icon1").animate({
				 marginTop:"-22px",
				 opacity:"1",
			},300);
			$("#activity div#icon2").animate({
				 marginTop:"388px",
				 opacity:"1",
			},300);
			$("#activity div#icon3").animate({
				 marginTop:"98px",
				 marginLeft:"310px",
				 opacity:"1",
			},300);
			$("#activity div#icon4").animate({
				 marginTop:"98px",
				 marginLeft:"-70px",
				 opacity:"1",
			},300);
			$("#activity div#icon5").animate({
				 marginTop:"268px",
				 marginLeft:"310px",
				 opacity:"1",
			},300);
			$("#activity div#icon6").animate({
				 marginTop:"268px",
				 marginLeft:"-70px",
				 opacity:"1",
			},300,
			function(){
				$("#activity div span").animate({opacity:"1"}, 400)
				$(".p1").animate({left:"14%"}, 500,
				function(){
					$(".p2").animate({left:"14%"}, 500,
					function(){
						$(".p3").animate({left:"14%"}, 500,
						function(){
							$(".p4").animate({left:"14%"}, 500,
							function(){
								$("#totop").animate({top:"-10px"}, 400)
								$(".down2").animate({bottom:"4%"},400,
								function(){
									$(".top2").animate({bottom:"4%"},400)
								});
							})
						})
					})
				})
			})
		})
	})
	$(".down2").click(function(){
		$(".down3,.top3,.sell,.chat1,.sdut1,.chat2,.yizai2,.chat3,.yizai3,.bicycle,.title3,.computer").css("display","block");
		$("#activity div#icon1,#activity div#icon2,#activity div#icon3,#activity div#icon4,#activity div#icon5,#activity div#icon6").delay(200).animate({
			marginTop:"198px",
			marginLeft:"120px",
			top:"16%",
			opacity:"0",
		},400);
		$(".down2").css("display","none");
		$(".top2").css("display","none");
		$(".p4").animate({left:"-30%"}, 400,
		function(){
			$(".p3").animate({left:"-30%"}, 350,
			function(){
				$(".p2").animate({left:"-30%"}, 300,
				function(){
					$(".p1").animate({left:"-30%"}, 250)
				})
			})
		})
		$(".p4,.p3,.p2,.p1").delay(1300).css("display","none");
		$(".computer").delay(600).animate({marginBottom:"-20px",},600,
		function(){
			$(".yizai").animate({opacity:"0"},400,
			function(){
				$(".title3").animate({opacity:"1"},400)
				$(".bicycle").animate({marginRight:"150px",},400)
			})
		})
		$(".yizai2").delay(700).animate({opacity:"1"},400,
		function(){
			$(".chat1").animate({opacity:1},400,
			function(){
				$(".sdut1").animate({opacity:1},400,function(){
					$(".chat2").animate({opacity:1},400,
					function(){
						$(".yizai3").animate({opacity:1},400,
						function(){
							$(".chat3").animate({opacity:"1"},400,
							function(){
								$(".sell").animate({opacity:"1"},400);
								$(".down3").animate({bottom:"4%"},400,
								function(){
									$(".top3").animate({bottom:"4%"},400)
								});
							})
						})
					})
				})
			})
		})
	})
	$(".down3").click(function(){
		$(".down3,.top3,.yizai2,.chat1,.sdut1,.chat2,.yizai3,.chat3,.bicycle,.sell,.title3").css("display","none");
		$(".down4,.top4,.sell2,.chat6,.sdut3,.chat5,.yizai4,.chat4,.sdut2,.book,.title4,.computer").css("display","block");
		$(".title4").animate({opacity:"1"},600);
		$(".book").animate({opacity:"1"},400)
		$(".sdut2").delay(700).animate({opacity:"1"},400,
		function(){
			$(".chat4").animate({opacity:1},400,
			function(){
				$(".yizai4").animate({opacity:1},400,function(){
					$(".chat5").animate({opacity:1},400,
					function(){
						$(".sdut3").animate({opacity:1},400,
						function(){
							$(".chat6").animate({opacity:"1"},400,
							function(){
								$(".sell2").animate({opacity:"1"},400)
								$(".down4").animate({bottom:"4%"},400,
								function(){
									$(".top4").animate({bottom:"4%"},400)
								});
							})
						})
					})
				})
			})
	    })
	})
	$(".down4").click(function(){
		$(".down4,.top4,.sell2,.chat1,.chat6,.sdut3,.chat5,.yizai4,.chat4,.sdut2,.book,.title4,.computer").css("display","none");
		$(".top5").css("display","block");
		$(".hei_bg2").animate({bottom:"0"},600);
		$(".wu_con").delay(100).animate({marginTop:"-200px"},600,
		function(){
			$(".top5").animate({bottom:"4%"},400)
	    })
	})
	$(".top5").click(function(){
		$(".down4,.top4,.sell2,.chat6,.sdut3,.chat5,.yizai4,.chat4,.sdut2,.book,.title4,.computer").delay(600).css("display","block");
		$(".top5").css("display","none");
		$(".hei_bg2").animate({bottom:"-1400px"},300);
		$(".wu_con").delay(100).animate({marginTop:"1400px"},300)
	})
	$(".top4").click(function(){
		$(".down4,.top4,.sell2,.chat6,.sdut3,.chat5,.yizai4,.chat4,.sdut2,.book,.title4").css("display","none");
		$(".down3,.top3,.yizai2,.chat1,.sdut1,.chat2,.yizai3,.chat3,.bicycle,.sell,.title3").css("display","block");
		$(".sell2,.chat6,.sdut3,.chat5,.yizai4,.chat4,.sdut2,.book,.title4").css("opacity","0");
		$(".top4,.down4").css("bottom","-30%");
	})
	$(".top3").click(function(){
		$(".down3,.top3,.yizai2,.chat1,.sdut1,.chat2,.yizai3,.chat3,.bicycle,.sell,.title3,.computer").css("display","none");
		$(".top2,.down2,.p4,.p3,.p2,.p1").css("display","block");
		$(".yizai").css("opacity","1");
		$(".sell,.chat1,.chat2,.sdut1,.chat3,.yizai3,.yizai2,.title3").css("opacity","0");
		$(".top3,.down3").css("bottom","-30%");
		$("#activity div#icon1").animate({
			 marginTop:"-22px",
			 opacity:"1",
		},300);
		$("#activity div#icon2").animate({
			 marginTop:"388px",
			 opacity:"1",
		},300);
		$("#activity div#icon3").animate({
			 marginTop:"98px",
			 marginLeft:"310px",
			 opacity:"1",
		},300);
		$("#activity div#icon4").animate({
			 marginTop:"98px",
			 marginLeft:"-70px",
			 opacity:"1",
		},300);
		$("#activity div#icon5").animate({
			 marginTop:"268px",
			 marginLeft:"310px",
			 opacity:"1",
		},300);
		$("#activity div#icon6").animate({
			 marginTop:"268px",
			 marginLeft:"-70px",
			 opacity:"1",
		},300,
		function(){
			$("#activity div span").animate({opacity:"1"}, 400)
			$(".p1").animate({left:"14%"}, 500,
			function(){
				$(".p2").animate({left:"14%"}, 500,
				function(){
					$(".p3").animate({left:"14%"}, 500,
					function(){
						$(".p4").animate({left:"14%"}, 500,
						function(){
							$("#totop").animate({top:"-10px"}, 400)
							$(".down2").animate({bottom:"4%"},400,
							function(){
								$(".top2").animate({bottom:"4%"},400)
							});
						})
					})
				})
			})
		});
		$(".computer").css("margin-bottom","-1000px");
		$(".bicycle").css("margin-right","-500px");
	})
	$(".top2").click(function(){
		$("#activity div#icon1,#activity div#icon2,#activity div#icon3,#activity div#icon4,#activity div#icon5,#activity div#icon6").delay(200).animate({
			marginTop:"198px",
			marginLeft:"120px",
			top:"16%",
			opacity:"0",
		},400);
		$(".p1,.p2,.p3").stop();
		$(".down2").css("display","none");
		$(".top2").css("display","none");
		$(".p4").animate({left:"-30%"}, 200,
		function(){
			$(".p3").animate({left:"-30%"}, 200,
			function(){
				$(".p2").animate({left:"-30%"}, 200,
				function(){
					$(".p1").animate({left:"-30%"}, 200)
				})
			})
		})
        $("#illia_1").css("display","block");
		$("#illia_1").animate({top:"16%"}, 600)
		$(".yizai").animate({opacity:"1"},200);
		$(".hei_bg").delay(800).animate({height:"100%"}, 400,
		function(){
			$("body").css("background-image","url(../public/images/guide/bg_colored.png)");
		});
		$(".down").delay(800).animate({opacity:"1"}, 400);
		$("#illia_1").delay(400).animate({opacity:"1"}, 400);
		$(".down2,.top2").css("bottom","-30%");
	})
})

$(function(){
	$(".loginuserpasswordt").focus(function(){
		$(this).hide();
	    $(".loginuserpasswordp").show();
		$(".loginuserpasswordp").focus();
	});
	$(".loginuserpasswordp").blur(function() {
		var val = $(this).val();
		if(val == ""){
			$(".loginuserpasswordt").show();
			$(".loginuserpasswordt").attr("value", "密码");
			$(".loginuserpasswordp").hide();
		}
	});
	$(".school_txt").focus(function(){
		val = $(".school_txt").html();
		if(val == "请填入你的学校名称或建议"){
			$(".school_txt").html("");
		}
	});
	$(".school_txt").blur(function() {
		val = $(".school_txt").html();
		if(val == ""){
			$(".school_txt").html("请填入你的学校名称或建议");
		}
	});
	$(".school_close").click(function(){
		$(".school").css("display","none");
	})
	$("#fred_1").click(function(){
		$(".school").css("display","block");
	})
})
